package com.health.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.health.entity.Disease;
import com.health.entity.pojo.dto.QueryDiseaseDTO;
import com.health.entity.pojo.vo.DiseaseVO;
import io.lettuce.core.dynamic.annotation.Param;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author fengjiaxing
 * @since 2023-04-15
 */

@Mapper
public interface DiseaseMapper extends BaseMapper<Disease> {

    //多选删除疾病
    boolean deleteSelectDisease(@Param("ids") List<Integer> ids);

    //分页查询疾病
    IPage<Disease> selectDisease(@Param("page") IPage<Disease> page,@Param("queryDiseaseDTO") QueryDiseaseDTO queryDiseaseDTO);
}

